package br.com.nooclix.ptt.ws.adapter.impl;

import java.lang.reflect.Type;
import java.util.List;

import br.com.nooclix.ptt.core.domain.member.Membership;
import br.com.nooclix.ptt.ws.adapter.AbstractAdapter;

import com.google.gson.reflect.TypeToken;

public class MembershipAdapter extends AbstractAdapter<Membership> {

	public MembershipAdapter() {
		super(Membership.class);
	}

	@Override
	public List<Membership> listConvert(String json) {
		Type type = new TypeToken<List<Membership>>() {
		}.getType();
		return getJsonEngine().fromJson(json, type);
	}

}
